package com.ssyu.examination.assist.service;

import java.util.ArrayList;
import java.util.List;

import com.ssyu.examination.assist.entity.AssitDbDateEntity;
import com.ssyu.examination.conmmon.PageModel;
import com.ssyu.examination.conmmon.util.DBUtil;

public class AssitDbDateSevrice {

	public PageModel<AssitDbDateEntity> listDateBase(int page, int rows) {
		StringBuilder sb = new StringBuilder();
		List<Object> objects = new ArrayList<>();
		sb.append("SELECT assit_db_data.bak_url, assit_db_data.bak_time,assit_db_data.operate_user_id FROM assit_db_data  LIMIT ?,? ");
		objects.add((page - 1) * rows);
		objects.add(rows);
		return DBUtil.executeQueryByPage(AssitDbDateEntity.class,
				sb.toString(), objects);
	}
}
